import request from '@/utils/request.ts'

const PREFIX = '/location'
const POST_URL = '/'
const LIST_URL = '/list'
const RECENT_URL = '/recent'

export const GetIpAddress = async (ip: any) => {
    return await request.get(PREFIX + POST_URL, {params: {ip}})
}

export const GetIpAddressListSync = async () => {
    return await request.get(PREFIX + LIST_URL)
}

export const getRecentIpAddressListSync = async () => {
    return await request.get(PREFIX + RECENT_URL)
}